<%@ page import="com.portico.dept.solarch.ProjectDashboard" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <meta name="layout" content="main"/>
    <g:set var="entityName" value="${message(code: 'projectDashboard.label', default: 'ProjectDashboard')}"/>
    <title><g:message code="default.show.label" args="[entityName]"/></title>
</head>

<body>
%{--<div class="nav">--}%
%{--<span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>--}%
%{--<span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>--}%
%{--<span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>--}%
%{--</div>--}%
<div class="body">
    <h1><g:message code="default.show.label" args="[entityName]"/></h1>
    <g:if test="${flash.message}">
        <div class="message">${flash.message}</div>
    </g:if>
    <div class="dialog">
        <table>
            <tbody>

            <tr class="prop">
                <td valign="top" class="name"><g:message code="projectDashboard.id.label" default="Id"/></td>

                <td valign="top" class="value">${fieldValue(bean: projectDashboardInstance, field: "id")}</td>

            </tr>

            <tr class="prop">
                <td valign="top" class="name"><g:message code="projectDashboard.trend.label" default="Trend"/></td>

                <td valign="top" class="value">${fieldValue(bean: projectDashboardInstance, field: "trend")}</td>

            </tr>

            <tr class="prop">
                <td valign="top" class="name"><g:message code="projectDashboard.currentStatus.label"
                                                         default="Current Status"/></td>

                <td valign="top"
                    class="value">${fieldValue(bean: projectDashboardInstance, field: "currentStatus")}</td>

            </tr>

            <tr class="prop">
                <td valign="top" class="name"><g:message code="projectDashboard.budget.label" default="Budget"/></td>

                <td valign="top" class="value">${fieldValue(bean: projectDashboardInstance, field: "budget")}</td>

            </tr>

            <tr class="prop">
                <td valign="top" class="name"><g:message code="projectDashboard.resources.label"
                                                         default="Resources"/></td>

                <td valign="top" class="value">${fieldValue(bean: projectDashboardInstance, field: "resources")}</td>

            </tr>

            <tr class="prop">
                <td valign="top" class="name"><g:message code="projectDashboard.timeline.label"
                                                         default="Timeline"/></td>

                <td valign="top" class="value">${fieldValue(bean: projectDashboardInstance, field: "timeline")}</td>

            </tr>

            <tr class="prop">
                <td valign="top" class="name"><g:message code="projectDashboard.quality.label" default="Quality"/></td>

                <td valign="top" class="value">${fieldValue(bean: projectDashboardInstance, field: "quality")}</td>

            </tr>

            <tr class="prop">
                <td valign="top" class="name"><g:message code="projectDashboard.scope.label" default="Scope"/></td>

                <td valign="top" class="value">${fieldValue(bean: projectDashboardInstance, field: "scope")}</td>

            </tr>

            <tr class="prop">
                <td valign="top" class="name"><g:message code="projectDashboard.voc.label" default="Voc"/></td>

                <td valign="top" class="value">${fieldValue(bean: projectDashboardInstance, field: "voc")}</td>

            </tr>

            <tr class="prop">
                <td valign="top" class="name"><g:message code="projectDashboard.comments.label"
                                                         default="Comments"/></td>

                <td valign="top" class="value">${fieldValue(bean: projectDashboardInstance, field: "comments")}</td>

            </tr>

            <tr class="prop">
                <td valign="top" class="name"><g:message code="projectDashboard.project.label" default="Project"/></td>

                <td valign="top" class="value"><g:link controller="project" action="show"
                                                       id="${projectDashboardInstance?.project?.id}">${projectDashboardInstance?.project?.encodeAsHTML()}</g:link></td>

            </tr>

            </tbody>
        </table>
    </div>

    <div class="buttons">
        <g:form>
            <g:hiddenField name="id" value="${projectDashboardInstance?.id}"/>
            <span class="button"><g:actionSubmit class="edit" action="edit"
                                                 value="${message(code: 'default.button.edit.label', default: 'Edit')}"/></span>
            <sec:ifAnyGranted roles="ROLE_SUPER_USER, ROLE_ADMIN_USER">
                <span class="button"><g:actionSubmit class="delete" action="delete"
                                                     value="${message(code: 'default.button.delete.label', default: 'Delete')}"
                                                     onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');"/></span>
            </sec:ifAnyGranted>
        </g:form>
    </div>
</div>
</body>
</html>
